<?php

namespace app\admin\model;

use think\Model;

class RebatePeriod extends Model
{
    protected $name = 'rebate_periods';

    // 获取指定期数积分
    public static function getPointsByPeriod($period)
    {
        return self::where('period', $period)->value('base_points');
    }
}
